//
//  NSObject+Calculate.m
//  blockTestOfBlog
//
//  Created by Song on 2018/5/9.
//  Copyright © 2018年 Song. All rights reserved.
//

#import "NSObject+Calculate.h"

@implementation NSObject (Calculate)

+(int)makeCalculate:(void (^)(CalculateManager *))block {
    CalculateManager *mgr = [[CalculateManager alloc] init];
    // 执行计算
    block(mgr);
    return mgr.result;
}

@end
